<?php

/**
* Pray Info Module config
* @author: trungdt
* @since: feb 17, 2011
*/

class prayinfomodule_config {
	function form($object) {
	
		if (!defined('SYS_FORMS')) require_once(BASE.'subsystems/forms.php');
		exponent_forms_initialize();
		if (!isset($object->id))
        {
            $object->pages=3;
        }
        else
        {
            $form->meta('id',$object->id);
        }
        
        
		$form = new form();
		
		$form->register('pages',"Số trang cho lời chứng và nhu cầu",new textcontrol($object->pages,15,false, 2,'',true));
		$form->register('submit','',new buttongroupcontrol("Save",'',"Cancel"));
		
		return $form;
	}
	
	function update($values,$object) {
		$object->pages = intval($values['pages']);
		return $object;
	}
}

?>
